package drawPropertyCommands;

import java.awt.Stroke;


/**
 * this class is the application of the command pattern where it will be used to modify
 * the DrawProperties used by the turtle trails. This class will specifically modify the dash aspect
 * of the DrawProperties while keeping the other parameters the same
 * @author KevinWang
 *
 */
public class DashModifier extends StrokeModifier{
    private float[] dash;
    public DashModifier(float[] dash){
        this.dash=dash;
    }
    
    /**
     * Override the getDash method of the StrokeModifier so that it will obtain all
     * the original attributes of the input stroke but modify the dash property
     */
    @Override
    protected float[] getDash(Stroke s){
        return dash;
    }
}
